package com.evil.common.file.dto.download.history;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 添加文件下载历史请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class AddFileDownloadHistoryReqDTO {

    private Long enterpriseId;

    private Long fileId;

    @NotBlank
    @Length(max = 32, message = "key长度超过最大值")
    private String downloadKey;

    private Long userId;

    private String nickName;

    /**
     * 操作ip
     */
    @NotBlank(message = "操作Ip不能为空")
    private String clientIp;

    /**
     * 服务ID
     */
    @NotBlank(message = "服务ID不能为空")
    private String serviceId;

    /**
     * 服务器host
     */
    @NotBlank(message = "服务器host不能为空")
    private String serverHost;

    /**
     * 服务器ip
     */
    @NotBlank(message = "服务器Ip不能为空")
    private String serverIp;

    /**
     * 系统环境
     */
    @NotBlank(message = "系统环境不能为空")
    private String env;
}
